package com.fs.sys.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import com.fs.common.base.domain.entity.BaseEntity;
import com.fs.sys.bean.enums.WorkbenchStatus;
import com.fs.sys.bean.enums.WorkbenchType;
import lombok.Data;

import java.util.Map;

/**
 * 工作台
 *
 * @author  LiuQi 2025/6/15-11:50
 * @version V1.0
 **/
@Data
@TableName(value = "sys_workbench", autoResultMap = true)
public class WorkbenchEntity extends BaseEntity {
    /**
     * 工作台名称
     */
    private String name;

    /**
     * 工作台类型
     */
    private WorkbenchType type;

    /**
     * 工作台配置
     */
    @TableField(typeHandler = Fastjson2TypeHandler.class)
    private Map<String, Object> config;

    /**
     * 已发布配置
     */
    @TableField(typeHandler = Fastjson2TypeHandler.class)
    private Map<String, Object> publishedConfig;

    /**
     * 工作台状态
     */
    private WorkbenchStatus status;
}
